package com.woniuxy.orderclient.client;

import com.woniuxy.core.model.Result;
import com.woniuxy.orderclient.client.dto.CountCardDto;
import com.woniuxy.orderclient.client.dto.ValidCardDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("card-server")
public interface CardFeignClient {
    //根据id查找次卡
    @GetMapping("/card/countCard/findById")
    public Result<CountCardDto> findCountCardById(@RequestParam("cardId") Integer cardId);
    //根据id查找有效期卡
    @GetMapping("/card/validCard/findById")
    public Result<ValidCardDto> findValidCardById(@RequestParam("cardId") Integer cardId);

}
